SERVER=server
CLIENT=client
CC=g++
SREVER_SRC=server.cc
CLIENT_SRC=client.cc

.pHONY: all
all: $(SERVER) $(CLIENT)

$(SERVER): $(SREVER_SRC)
	$(CC) -o $@ $< -lpthread -std=c++11
$(CLIENT): $(CLIENT_SRC)
	$(CC) -o $@ $< -lpthread -std=c++11

.PHONY: clean
clean:
	rm -f $(SERVER) $(CLIENT)
	rm -f *.o